import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:wechat_manager/getx/controller_helper.dart';

import '../../routes/routers.dart';
import 'home_controller.dart';

class HomePage extends StatefulWidget {
  const HomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

  HomeController homeController = ControllerHelper.put(HomeController());


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
        centerTitle: true,
      ),
      body: Router.withConfig(config: childRouters),
    );
  }
}